<?php
$this->menu = array(
    array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')),
);
?>

<h3><?php echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2)); ?></h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'shopping-cart-by-user-grid',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(
        array(
            'name' => 'user_id',
            'value' => 'PurchaseOrder::getUsersName($data->user_id)',
            'filter' => FALSE
        ),
         array(
                    'header' => 'User Email',
                    'value' => '$data->user->username',
                    'filter' => FALSE
                ),
         array(
            'name' => 'class_id',
            'value' => 'getClassName($data->class_id)',
            'filter' => FALSE
        ),
        
        'qty',
       
    ),
));
?>